import request from '@/utils/request.js'; // 封装的request.js文件的位置

/**
 * 测试接口信息
 */
export const getInfo = () => {
	return request(`/api/test`, 'GET')
}
/**
 * 获取首页天气信息数据
 */
export const getIndexData = (param) => {
	return request('/api/getIndexData','GET',param)
}
/**
 * 获取当天天气详情数据情况
 */
export const getDetailsData = (param) => {
	return request('/api/getWeatherDetails','GET',param)
}
/**
 * 微信一键登录授权
 */
export const wxLogin = (param) => {
	return request('/wx/wxLogin','GET',param)
}
/**
 * 查询朋友列表
 */
export const getFriendList = (param) => {
	return request('/friendRelationship/getFriendList','get',param)
}
/**
 * 新增好友
 */
export const addFriend = (param) => {
	return request('/friendRelationship/addFriend','get',param)
}

/**
 * 消息推送
 */
export const sendMessageTuiSong = (param) => {
	return request('/message/send','post',param)
}

/**
 * 消息列表查询
 */
export const getMessageList = (param) => {
	return request('/message/getMessageList','get',param)
}

/**
 * 修改消息已读状态
 */
export const updateMessageState = (param) => {
	return request('/message/updateState','get',param)
}

/**
 * 获取消息详情信息
 */
export const getMessageDetails = (param) => {
	return request('/message/getData','get',param)
}

/**
 * 根据天气：获取温馨提醒
 */
export const getWxtx = (param) => {
	return request('/api/getIndexWxtx','post',param)
}

/**
 * 根据天气：获取温馨一言
 */
export const getWxyy = (param) => {
	return request('/api/getIndexWxyy','post',param)
}

/**
 * 查询用户详情信息
 */
export const getUserInfo = (param) => {
	return request('/userInfo/getUserInfo','get',param)
}

/**
 * 编辑用户信息
 */
export const editUserInfo = (param) =>{
	return request('/userInfo/editUserInfo','post',param)
}
